// 此页面定义路由匹配规则

// 如果使用路由懒加载 就要用suspens包裹一下 {通过 import() 、React.lazy 和 Suspense 共同一起实现了 React 的懒加载}

import Cart from "../views/Cart";
import Home from "../views/Home";
import Mine from "../views/Mine";
let element = [
    {
        path: '/',
        element: <Home></Home>
    }, {
        path: '/cart',
        element: <Cart></Cart>
    }, {
        path: '/mine',
        element: <Mine></Mine>
    }
]

export default element;
